<html>
<head><meta charset="utf-8"><title>How can I run triagebot locally? · t-infra · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/index.html">t-infra</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/How.20can.20I.20run.20triagebot.20locally.3F.html">How can I run triagebot locally?</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="232840172"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/How%20can%20I%20run%20triagebot%20locally%3F/near/232840172" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/How.20can.20I.20run.20triagebot.20locally.3F.html#232840172">(Apr 01 2021 at 23:37)</a>:</h4>
<p>I assume the instructions in <a href="https://github.com/rust-lang/triagebot">https://github.com/rust-lang/triagebot</a> require you to have your own bot you've created? Is there a walkthrough of how to set that up?</p>
<p>Alternatively, if someone is willing to let me glance at recent logs for <span class="user-mention" data-user-id="261224">@triagebot</span> , that would be super helpful. For context I'm trying to work on <a href="https://github.com/rust-lang/triagebot/issues/1066">https://github.com/rust-lang/triagebot/issues/1066</a>.</p>



<a name="232840173"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/How%20can%20I%20run%20triagebot%20locally%3F/near/232840173" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> triagebot <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/How.20can.20I.20run.20triagebot.20locally.3F.html#232840173">(Apr 01 2021 at 23:37)</a>:</h4>
<p>Unknown command.</p>



<a name="232840322"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/How%20can%20I%20run%20triagebot%20locally%3F/near/232840322" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/How.20can.20I.20run.20triagebot.20locally.3F.html#232840322">(Apr 01 2021 at 23:38)</a>:</h4>
<p>No, not currently -- there's not much documentation. Can you say more about what exactly you're trying to test?</p>



<a name="232840382"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/How%20can%20I%20run%20triagebot%20locally%3F/near/232840382" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/How.20can.20I.20run.20triagebot.20locally.3F.html#232840382">(Apr 01 2021 at 23:39)</a>:</h4>
<p>right now it does nothing when I set a label that doesn't exist: <a href="https://github.com/rust-lang/rust/pull/72571#issuecomment-812229450">https://github.com/rust-lang/rust/pull/72571#issuecomment-812229450</a>. I think it may have crashed, I'm trying to get a backtrace.</p>



<a name="232840537"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/How%20can%20I%20run%20triagebot%20locally%3F/near/232840537" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/How.20can.20I.20run.20triagebot.20locally.3F.html#232840537">(Apr 01 2021 at 23:41)</a>:</h4>
<p>iirc that's intentional</p>



<a name="232840601"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/How%20can%20I%20run%20triagebot%20locally%3F/near/232840601" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/How.20can.20I.20run.20triagebot.20locally.3F.html#232840601">(Apr 01 2021 at 23:42)</a>:</h4>
<p>it seems weird not to post a message saying the label wasn't recognized :/ do you know why people chose to implement that?</p>



<a name="232840623"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/How%20can%20I%20run%20triagebot%20locally%3F/near/232840623" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/How.20can.20I.20run.20triagebot.20locally.3F.html#232840623">(Apr 01 2021 at 23:42)</a>:</h4>
<p>hm, actually, no that seems odd</p>



<a name="232840658"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/How%20can%20I%20run%20triagebot%20locally%3F/near/232840658" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/How.20can.20I.20run.20triagebot.20locally.3F.html#232840658">(Apr 01 2021 at 23:43)</a>:</h4>
<p>I recall there being logic around not telling you on edits, or something like that... let me pull up the logs</p>



<a name="232841130"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/How%20can%20I%20run%20triagebot%20locally%3F/near/232841130" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/How.20can.20I.20run.20triagebot.20locally.3F.html#232841130">(Apr 01 2021 at 23:48)</a>:</h4>
<p><a href="https://github.com/rust-lang/triagebot/blob/aaff4268d3cb2fec1154b3f9e99cbc38e3d51891/src/github.rs#L455-L462">https://github.com/rust-lang/triagebot/blob/aaff4268d3cb2fec1154b3f9e99cbc38e3d51891/src/github.rs#L455-L462</a></p>



<a name="232841135"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/How%20can%20I%20run%20triagebot%20locally%3F/near/232841135" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/How.20can.20I.20run.20triagebot.20locally.3F.html#232841135">(Apr 01 2021 at 23:48)</a>:</h4>
<p><span class="user-mention" data-user-id="232545">@Joshua Nelson</span> ^</p>



<a name="232841140"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/How%20can%20I%20run%20triagebot%20locally%3F/near/232841140" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/How.20can.20I.20run.20triagebot.20locally.3F.html#232841140">(Apr 01 2021 at 23:49)</a>:</h4>
<p>seems like we just ignore non-existent labels</p>



<a name="232841156"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/How%20can%20I%20run%20triagebot%20locally%3F/near/232841156" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/How.20can.20I.20run.20triagebot.20locally.3F.html#232841156">(Apr 01 2021 at 23:49)</a>:</h4>
<p>maybe git blame can say more, I don't recall off the top of my head</p>



<a name="232841180"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/How%20can%20I%20run%20triagebot%20locally%3F/near/232841180" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/How.20can.20I.20run.20triagebot.20locally.3F.html#232841180">(Apr 01 2021 at 23:49)</a>:</h4>
<p>thanks for the link! I'll see if I can find the PR adding this</p>



<a name="232870493"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/How%20can%20I%20run%20triagebot%20locally%3F/near/232870493" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/How.20can.20I.20run.20triagebot.20locally.3F.html#232870493">(Apr 02 2021 at 07:36)</a>:</h4>
<p>looks like this was added in <a href="https://github.com/rust-lang/triagebot/commit/661ccbb58d80a9f55cafdb9675b68dbd86ff6290">https://github.com/rust-lang/triagebot/commit/661ccbb58d80a9f55cafdb9675b68dbd86ff6290</a> because otherwise github will silently create the label</p>



<a name="232870502"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/242791-t-infra/topic/How%20can%20I%20run%20triagebot%20locally%3F/near/232870502" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/242791-t-infra/topic/How.20can.20I.20run.20triagebot.20locally.3F.html#232870502">(Apr 02 2021 at 07:37)</a>:</h4>
<p>I think it should be fine to add an error here</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>